var app = getApp();
Component({

	options: {
		addGlobalClass: true,
		styleIsolation: 'isolated'
	},
	properties: {
		time: {
			type: String,
			value: ""
		},
		currentdate: {
			type: Object,
			value: {}
		},
		currentlist: {
			type: Array,
			value: []
		}
	},
	observers: {
		'time'(data) { // canvasUrl: 父组件传递过来的值
		console.log(data)
		},
		'currentlist'(data) { // canvasUrl: 父组件传递过来的值
		console.log(data)
		},
		'currentdate'(data) { // canvasUrl: 父组件传递过来的值
		console.log(data)
		}
	},
	data: {
		zlist: ['周日', '周一', '周二', '周三', '周四', '周五', '周六', ],
	},
	methods: {
		bindDateChange: function(e) {
			this.triggerEvent("itemclick",e.detail.value)
		},
		// 获取当前时间
		clickdate(e) {
			this.triggerEvent("itemclick1", e.currentTarget.dataset.id)
		},
	},

	onLoad: function() {
	},


	//返回的时候也可以刷新
	onShow: function() {
		this.getCardList();
	},


});